﻿using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Web.Script.Serialization;
using System.Xml;
using System.Xml.Linq;
using HalAfstande.Domain;

namespace HalAfstande
{
    class Program
    {
        static void Main(string[] args)
        {
            int counter = 0;
            var m = new DataHandler("Danasvej 8, 4293", "HalListe.xml").Map;

            Console.WriteLine("Lokation:\t\t\t\tAfstand:\t\tTid:");
            foreach (var element in m.Rows[0].Elements)
            {
                Console.WriteLine(m.HalNames[counter++] + "\t\t\t\t" + element.Distance.Text + "\t\t" + element.Duration.Text);
            }
            Console.ReadLine();
        }

    }
}
